<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新增页面</title>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery.js" type="text/javascript"></script>
<script LANGUAGE="JavaScript">
var flg = "${flg!''}";
if(flg == "true"){
	alert("保存成功");
	window.parent.closediv();
}else{
	if(flg!=''){
		alert(flg);
	}
}

function subForm(){
	if($("#qhdm").val()==''){
		alert("代码不能为空");
		return;
	}
	if($("#qhmc").val()==''){
		alert("名称不能为空");
		return;
	}
	$("form").submit();
}
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="pop">
	<tr>
		<td width="36" height="18" valign="top" class="popTitle"><img
			src="../images/tips_1.png" width="36" height="25" /></td>
		<td width="727" class="popTitle">污染源在线监控类型</td>
		<td width="35" align="left" valign="top" class="popTitle"></td>
	</tr>
	<tr>
		<td colspan="3" align="center" valign="top">
		<table width="96%" cellpadding="0" cellspacing="0" class="table spaceTop">
		<form action="save.htm" method="post">
			<input type="hidden" name="saveType" value="<#if xzqh??>update<#else>add</#if>">
			<tr>
				<td width="14%" align="center" class="detailRow">代码</td>
				<td width="36%" class="row rowLeft"><input type="text"
					name="qhdm" id="qhdm" class="input" value="${(xzqh.qhdm)!}" /></td>
				<td width="14%" align="center" class="detailRow">名称</td>
				<td width="36%" class="row rowLeft"><input type="text"
					name="qhmc" id="qhmc" class="input" value="${(xzqh.qhmc)!}" /></td>
			</tr>
		</table>
		<div class="btnDiv"><input name="button" onclick="subForm()" type="button"
			class="btn" id="button" value="保 存"
			onmouseover="this.className='btnhover'"
			onmouseout="this.className='btn'" /></div>
		</td>
	</tr>
</table>
</body>
</html>
